package com.itheima.demo07.Function;

import java.util.function.Function;

public class Demo01Function {
    public static void main(String[] args) {
        String s="1234";
        change(s,t->Integer.parseInt(t));
    }

    public static void change(String s, Function<String, Integer> fun) {
        Integer in = fun.apply(s);
        System.out.println(in);
    }
}
